

const getRandom = (places)=>{
  return Math.floor(Math.random()*getPlace(places))
}


const getPlace = (place)=>{
  let sum = 1;
  for (let i = 0; i < place; i++) {
    // console.log(sum)
    sum*=10;
  }

  return sum
}


const generate = (place,multiplier,number)=>{

  for (let i = 0; i <number; i++) {
    let random = getRandom(place)
    console.log(random +'  *  '+ multiplier + '  =  ' +random*multiplier)
  }

}

generate(5,4,10);
